namespace UniversalAdmin.Shared.Pagination;

public class PagedResult<T>
{
    public List<T> Items { get; set; } = new();
    public int TotalCount { get; set; }
    public int PageIndex { get; set; }
    public int PageSize { get; set; }
    public bool HasPrevious => PageIndex > 1;
    public bool HasNext => PageIndex * PageSize < TotalCount;
}